public class Example {
    public static void main(String[] args) {
        // Create an instance of ComponentInWindow
        ComponentInWindow win = new ComponentInWindow();

        // Set window position and size
        win.setBounds(100, 100, 310, 260);

        // Set the title of the window
        win.setTitle("常用组件");

        // Make the window visible
        win.setVisible(true);  // Ensure the window is displayed
    }
}

